package com.mxpio.erp.common.sales.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_PURC_ADDRESS")
@Schema(description="收货地址")
public class Address extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Generator
	@Column(name = "ID_", updatable = false)
	@Schema(description = "ID")
	private String id;
	
	@Column(name = "PN_CODE_")
	@Schema(description = "伙伴编号")
	private String pnCode;
	
	@Column(name = "ADDRESS_")
	@Schema(description = "收货地址")
	private String address;
	
	@Column(name = "CONSIGNEE_")
	@Schema(description = "收货人")
	private String consignee;
	
	@Column(name = "ADDR_TEL_")
	@Schema(description = "联系电话")
	private String addrTel;
	
	@Column(name = "MEMO_")
	@Schema(description = "备注")
	private String memo;

}
